package com.day18;

public class TestCreateArr {
    public static void main(String[] args) {
        //声明数组
        double arrary1[];
        double[] arrary2;
        double[] arrary3,arrary4,arrary5;

        //分配内存空间(如数组未进行初始化时数组有默认的值：0)
        arrary1=new double[5];
        arrary1[0]=0;
        arrary1[1]=1;
        arrary1[2]=-3.3;
        arrary1[3]=9.1;
        arrary1[4]=10.6;

        System.out.println(arrary1[2]);
    }
}
